#ifndef __LISTLIB_H
#define __LISTLIB_H

#include <time.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct{
	time_t time;
	char *string;
}data_t;

int init_data(data_t *data,time_t time,const char *str);
int free_data(data_t *data);
void show_data(data_t data);
int accessdata(void);
int adddata(data_t data);
int getdata(int key,data_t *datap);
int freekey(int key);
int length(void);
int save_data(const char *filename);


#ifdef __cplusplus
}
#endif

#endif

